package com.bzm.controller.index;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.bzm.controller.base.BaseController;
import com.bzm.pojo.plugins.PluginInfo;

import lombok.extern.slf4j.Slf4j;

/**
 * @Description: index
 * @Author: hm
 * @CreateDate: 2018/12/24 21:19
 * @Version: 1.0
 */
@Slf4j
@Controller
public class IndexController extends BaseController{
	
	
	@RequestMapping(value = "/")
    public ModelAndView showDefault(HttpServletRequest request){
    	ModelAndView mv = new ModelAndView();
    	PluginInfo info = new PluginInfo();
    	info.setPluginName("bzm_im_netty");
    	mv.addObject("pluginInfo", info);
		mv.setViewName("/plugins/bzm_plugin_im_netty4");
		return mv;
    }
	
	/**
	 * @Description:默认页面
	 * @param request
	 * @return
	 * String
	 * @exception:
	 * @author: hemiao
	 * @time:2019年5月6日 下午4:18:15
	 */
    @RequestMapping(value = "/bzm_im_netty.html")
    public ModelAndView showBzmImNetty(HttpServletRequest request){
    	ModelAndView mv = new ModelAndView();
    	PluginInfo info = new PluginInfo();
    	info.setPluginName("bzm_im_netty");
    	mv.addObject("pluginInfo", info);
		mv.setViewName("/plugins/bzm_plugin_im_netty4");
		return mv;
    }
    
    
}
